package cn.jorian.framework.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 权限表
 * @TableName permiss
 */
@TableName(value ="permiss")
public class Permiss implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 权限名
     */
    private String permissName;

    /**
     * 权限key
     */
    private String permissKey;

    /**
     * 备注
     */
    private String memo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 权限名
     */
    public String getPermissName() {
        return permissName;
    }

    /**
     * 权限名
     */
    public void setPermissName(String permissName) {
        this.permissName = permissName;
    }

    /**
     * 权限key
     */
    public String getPermissKey() {
        return permissKey;
    }

    /**
     * 权限key
     */
    public void setPermissKey(String permissKey) {
        this.permissKey = permissKey;
    }

    /**
     * 备注
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 备注
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Permiss other = (Permiss) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPermissName() == null ? other.getPermissName() == null : this.getPermissName().equals(other.getPermissName()))
            && (this.getPermissKey() == null ? other.getPermissKey() == null : this.getPermissKey().equals(other.getPermissKey()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPermissName() == null) ? 0 : getPermissName().hashCode());
        result = prime * result + ((getPermissKey() == null) ? 0 : getPermissKey().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", permissName=").append(permissName);
        sb.append(", permissKey=").append(permissKey);
        sb.append(", memo=").append(memo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}